<{if true||$use_buildin_selectrow}>
<div class="finder-tip" id="finder-tip-<{$name}>" count="<{$pinfo.count}>" style='visibility:hidden;'>
    <div class='selected'><{t}>您当前选定了<{/t}><em></em><{t}>条记录！<{t}>总金额<{/t}><span class="total-price"></span><{/t}>
        <span class="lnk" onclick="<{$var_name}>.unselectAll()"><{t}>取消选定<{/t}></span>
        <span class="lnk check-all" onclick="<{$var_name}>.selectAll() "><{t}>选定全部<{/t}></span>
    </div>
    <div class='selectedall'>
        <{t}>您当前选定了全部记录！<{/t}>共计<span><{$pinfo.count}></span><{t}>条<{/t}><{t}>总金额<{/t}><span class="total-price"></span>。
        <span class="lnk" onclick="<{$var_name}>.unselectAll()"><{t}>取消选定<{/t}></span>
    </div>
</div>
<{/if}>

<div id="finder-list-<{$name}>" class="finder-list finder-normal">
    <table width="100%" cellpadding="0" cellspacing="0" class="input-list">
        <{if $use_buildin_selectrow}>
        <col class="col-select"></col>
        <{/if}>
        <{$detail_col_html}>
        <{$column_col_html}>
        <col></col>
        <tbody>
        <{$body}>
        </tbody>
    </table>
    <{if !$body}>
    <div style="margin:20px;border:1px solid #999;background:#f0f0f0;padding:20px;-moz-border-radius:5px;-webkit-border-radius:5px;radius:5px">
        <{t}>没有符合条件的条目.<{/t}>
    </div>
    <{/if}>
</div>
<script type="text/javascript">
    //此处方法用来计算选中的条目的总金额
    jQuery(document).ready(function () {
        jQuery(".sellist,.check-all").on("click", function (e) {
            var that = this;
            inputTotal(that);
        });
        jQuery(".finder-list").find('input').on("click", function () {
            var that = this;
            inputTotal();
        });
        window.inputTotal = function (that) {
            if ((that && that.className.toLowerCase() == "sellist") || (that && that.className.toLowerCase() == "check-all")) {
                var allsellist = jQuery('.input-list').find('input');
                for (var i = 0; i < allsellist.length; i++) {
                    allsellist[i].checked = true;
                }
            }
            var ary = [];
            var itemList = jQuery('.input-list').find('input');
            for (var i = 0; i < itemList.length; i++) {
                if (itemList[i].checked == true) {
                    var itemTdList = jQuery(itemList[i]).parents("tr").find("td");
                    for (var k = 0; k < itemTdList.length; k++) {
                        if (itemTdList[k].getAttribute("key") == "final_amount") {
                            var price = jQuery(itemTdList[k]).children("div").text();
                            price = price.replace(/руб./, "");
                            ary[ary.length] = price;
                        }
                    }
                }
            }
            var totalPrice = ary.join("+");
            totalPrice = eval(totalPrice);
            jQuery('.total-price').text(totalPrice);
        }
    })

</script>
